﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebRole1
{
    public partial class manageUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bool isAdmin = (bool)Session["isAdmin"];
            if (isAdmin == false)
            {
                Response.Redirect("error.aspx", false);
            }
            Page_Init(sender, e);
        }

        protected void Page_Init(object sender, EventArgs e)
        {
            try
            {
                bool isAdmin = (bool)Session["isAdmin"];
                if (isAdmin == false)
                {
                    Response.Redirect("error.aspx", false);
                }
            }
            catch (Exception) { }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
         
        }
    }
}